package cate.game.farm.record;

import cate.game.play.proce.play.PlayPO;
import cate.game.role.Role;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.List;

@NoteClass("最早通关记录")
public class EarlyPassRecord extends SinglePassRecord{

	@NoteField("通关时间戳")
	public long passTime;

	@Override
	protected boolean needUpdate(Role role, List<PlayPO> plays) {
		return passTime<=0;
	}

	@Override
	protected void doRecord(Role role, List<PlayPO> plays) {
		passTime = role.getGame().time.now();
	}
}
